package com.ywgt.mapper;

import com.github.pagehelper.Page;
import com.ywgt.pojo.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author yiping
 * @since 2021-03-12
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> selectAll();

    Page<Role> selectRoles(@Param("name") String name,@Param("sort") String sort,@Param("order") String order);
}
